package com.six.backend.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: skyler
 * @Date: 2021/11/6 15:04
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@ApiModel("角色")
public class Role {
    @NotNull
    @ApiModelProperty("角色名")
    private String name;
    @NotNull
    @ApiModelProperty("角色描述")
    private String description;
    @NotNull
    @ApiModelProperty("角色创建者")
    private String creator;
    @NotNull
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("角色创建时间")
    private Date createTime;
}
